.category {
  position: absolute;
  left: 0;
  top: 18px;
  width: 200px;
  z-index: 20;
}

.category-list {
  position: relative;
  height: 440px;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  display: table;
  cursor: pointer;
  width: 100%;

  // 鼠标悬浮移除园角
  &:hover {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
  }

  .category-item {
    display: table-row;

    &.active {
      .category-item-more {
        display: block;
      }

      .category-item-info {
        background: #fff;
        box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;

        &:after {
          content: "";
          width: 60px;
          height: 75px;
          background: #fff;
          position: absolute;
          top: 0;
          right: -10px;
          z-index: 2;
          display: block
        }
      }

      &:first-child .category-item-info {
        border-radius: 10px 0 0 0
      }

      &:last-child .category-item-info {
        border-radius: 0 0 0 10px
      }
    }

    &-info {
      display: table-cell;
      vertical-align: middle;
      position: relative;
      padding-left: 16px;
      width: 184px;

      a {
        font-size: 16px;
        color: #848484;
      }

      &:after {
        content: "";
        width: 16px;
        height: 16px;
        background-position: -363px 0;
        position: absolute;
        top: 50%;
        right: 15px;
        margin-top: -8px;
      }
    }

    &-more {
      display: none;

      position: absolute;
      left: 199px;
      height: 420px;
      max-width: 1020px;
      background: #FFF;
      padding: 20px 0 0 32px;
      border-radius: 0 10px 10px 0;
      box-shadow: 0 0 46px rgba(0, 0, 0, 0.1);
      top: 0;
      z-index: 1;
      overflow: hidden;
    }
  }
}


.category-item-more {

  &.category-more-1 {
    width: 242px;
  }

  &.category-more-2 {
    width: 484px;
  }

  &.category-more-3 {
    width: 726px;
  }

  .subcate-list {
    width: 242px;
    margin: 0;
    float: left;

    .subcate-item {
      float: left;
      margin-bottom: 25px;

      a {
        display: table-cell;
        width: 230px;
        height: 60px;
        font-size: 14px;
        border-radius: 10px;
        margin-right: 0;
        vertical-align: middle;

        &:hover {
          background: #f6f6f6;
        }

        img {
          width: 48px;
          height: 48px;
          float: left;
          margin: 0 8px 0 12px;
        }

        p {
          display: table-cell;
          height: 34px;
          line-height: 17px;
          position: relative;
          top: 7px;
          vertical-align: middle;
          color: #666;
          font-size: 14px;
          width: 150px;
          overflow: hidden;

          span {
            max-height: 34px;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
        }
      }
    }

    .subcate-btn {
      float: left;

      a {
        width: 112px;
        height: 42px;
        line-height: 42px;
        margin-top: 8px;
        margin-left: 36px;
        border: 1px solid #f2f2f2;
        border-radius: 0 22px 22px 0;
        font-size: 13px;
        color: #999;
        display: block;
        position: relative;
        text-indent: 34px;

        &:before {
          content: "";
          width: 42px;
          height: 42px;
          background: #fff;
          border: 1px solid #f2f2f2;
          display: block;
          border-radius: 22px;
          position: absolute;
          top: -1px;
          left: -22px;
        }

        &:after {
          content: "";
          width: 0;
          height: 0;
          display: block;
          border-bottom: 5px solid transparent;
          border-top: 5px solid transparent;
          border-left: 5px solid #c0c0c0;
          position: absolute;
          top: 16px;
          left: -1px;
        }
      }
    }
  }
}

.category.detail {
  top: 55px;
  left: -170px;
  .category-list {
    background: #fff;
  }
}
